package com.zhanghu.backendZray.service;

import org.rocksdb.RocksDBException;

/**
 * @author ZhangDong
 * @date 2024/12/17 10:51
 */
public interface RocksDBService {

    void putData(Object key, Object value) throws RocksDBException;

    <T> T getData(Object key, Class<T> clazz) throws RocksDBException;

    void updateData(Object key, Object value) throws RocksDBException;

    void deleteData(Object key) throws RocksDBException;
}
